package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.AgeDao;
import com.itheima.service.AgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service(interfaceClass = AgeService.class)
@Transactional
public class AgeServiceImpl implements AgeService {

    @Autowired
    private AgeDao ageDao;

    @Override
    public Map<String, Object> findAgeCount() {
        return ageDao.findAgeCount();
    }
}
